﻿using System;
using System.Collections.Generic;
using DevExpress.Xpo;
using System.Text;

namespace BusinessObjects
{
    public class SinhVienTrongGiangVien : XPObject
    {
        public SinhVienTrongGiangVien()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public SinhVienTrongGiangVien(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields
        double fDiem = 0;
        public double Diem
        {
            get { return fDiem; }
            set { SetPropertyValue<double>("Diem", ref fDiem, value); }
        } 
        string fNhanXet = string.Empty;
        [Size(2000)]
        public string NhanXet
        {
            get { return fNhanXet; }
            set { SetPropertyValue<string>("NhanXet", ref fNhanXet, value); }
        }
        GiangVienTrongNam fGiangVienTrongNam;
        [Association(@"SinhVienTrongGiangVienReferencesGiangVienTrongNam")]
        public GiangVienTrongNam GiangVienTrongNam
        {
            get { return fGiangVienTrongNam; }
            set { SetPropertyValue<GiangVienTrongNam>("GiangVienTrongNam", ref fGiangVienTrongNam, value); }
        }
        SinhVien fSinhVien;
        [Association(@"SinhVienTrongGiangVienReferencesSinhVien")]
        public SinhVien SinhVien
        {
            get { return fSinhVien; }
            set { SetPropertyValue<SinhVien>("SinhVien", ref fSinhVien, value); }
        }
    }
}
